﻿using System.Configuration;

namespace Mbs.Configuration
{
    [ConfigurationCollection(typeof(ConfigurationElement))]
    public class ComponetElementCollection:ConfigurationElementCollection
    {
        protected override ConfigurationElement CreateNewElement()
        {
            return new ComponentElement();
        }

        protected override object GetElementKey(ConfigurationElement element)
        {
            return ((ComponentElement)element).Service;
        }
       
    }
}
